package com.txw.javaCore.model.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @PROJECT_NAME: JavaCoreB2
 * @DESCRIPTION:
 * @Author: 涂玄武
 * @DATE: 2020/12/24 14:59
 */
@Data
public class DelayJobRequest implements Serializable{

    @NotBlank(message = "定时发送时间不能为空，格式为 yyyy-MM-dd HH:mm:ss")
    private String jobTime;

    @NotBlank(message = "邮件接受者不能为空！")
    private String tos;

    @NotBlank(message = "邮件内容不能为空！")
    private String content;

    @NotBlank(message = "邮件主题不能为空！")
    private String subject;
}
